#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void init(int*arr, int n)
{
	for (int i = 0; i < n; i++)
	{
		arr[i] = 0;
	}
}
void print(int* arr, int n)
{
	for (int j = 0; j < n; j++)
	{
		printf("%d ", arr[j]);
	}
	printf("\n");
}
void reverse(int* arr, int n)
{
	int left = 0;
	int right = n - 1;
	while (left < right)
	{
		int tmp = arr[left];
		arr[left] = arr[right];
		arr[right] = tmp;
		left++;
		right--;
	}
}
int main()
{

	int arr[10] = {1,2,23,4,214,412,4};
	int n = sizeof(arr) / sizeof(arr[0]);
	//init(arr, n);
	print(arr, n);
	reverse(arr, n);
	print(arr, n);
	return 0;
}